package com.bdqn.dao;

public class Bai implements Operation {

    @Override
    public double getResult(double num1, double num2) {
        double res = 0;
        try {
            res = num1 % num2;
        } catch (ArithmeticException e) {
            e.printStackTrace();
            System.out.println("取模数不能为0");
        }
        return res;
    }
}